
#ifndef _MEMBER_BGEOMETRY_H_
#define _MEMBER_BGEOMETRY_H_

#include <BProgram>
#include <BTexture>
#include <BMaterial>
#include <BIndexArray>
#include <BVectorArray>
#include <BCoordArray>
#include <BColorArray>
#include <BGeometry>
#include <BElement>

#define geometry_member(geometry)		((member_BGeometry*)((BGeometry*)geometry)->_ptr)

namespace BWE
{
	class member_BGeometry
	{
	public:
		member_BGeometry(BGeometry* geometry);
		~member_BGeometry();

		void drawPiecesLObject(BElement* element, GLenum mode);


		BGeometry*					boss;
		BHolder<BVectorArray>		vertices;
		BHolder<BVectorArray>		normals;
		BHolder<BColorArray>		colors;
		BHolder<BCoordArray>		coords[8];
		BArray<BElementHolder>		elements;
	};
}

#endif